Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update local type generation scripts #2968

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open

Conversation

pLabarta
Copy link
Contributor

@pLabarta pLabarta commented Sep 23, 2024

What does it do?

Bump @polkadot/api versions and update scripts for updating the TypeScript Api from a local build. Also modified /test to use the local package instead of the published one using pnpm workspaces.

Usage:

  • Run the Moonwall script called "update-local-types.ts"
  • Script will update TS API for Moonbeam, Moonriver and Moonbase

There were some changes to tests to fix errors that appeared when upgrading deps.

What important points reviewers should know?

Is there something left for follow-up PRs?

Yes, following PRs should address:

  • Using new scripts for updating types in CI

  • Import types from moonbeam-types-bundle

  • Review and update types in the bundle

  • Automate type generation for PRs

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@pLabarta pLabarta changed the title Pablo/ts api overhaul Update local type generation scripts Sep 23, 2024
@pLabarta pLabarta added B0-silent Changes should not be mentioned in any release notes D2-notlive PR doesn't change runtime code (so can't be audited) labels Sep 23, 2024
Copy link
Contributor

github-actions bot commented Sep 23, 2024

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2276 KB (no changes) ✅

Moonbeam runtime: 2252 KB (no changes) ✅

Moonriver runtime: 2248 KB (no changes) ✅

Compared to latest release (runtime-3200)

Moonbase runtime: 2276 KB (+316 KB compared to latest release) ⚠️

Moonbeam runtime: 2252 KB (+328 KB compared to latest release) ⚠️

Moonriver runtime: 2248 KB (+324 KB compared to latest release) ⚠️

Copy link
Contributor

github-actions bot commented Oct 7, 2024

Coverage Report

@@                    Coverage Diff                    @@
##           master   pablo/ts-api-overhaul      +/-   ##
=========================================================
+ Coverage   79.12%                  79.13%   +0.01%     
  Files         303                     303              
+ Lines       88015                   88050      +35     
=========================================================
+ Hits        69637                   69675      +38     
- Misses      18378                   18375       -3     
Files Changed Coverage
/precompiles/batch/src/tests.rs 98.81% (+0.38%) 🔼

Coverage generated Mon Oct 7 17:09:34 UTC 2024

@pLabarta pLabarta marked this pull request as ready for review October 8, 2024 11:43
@pLabarta pLabarta requested review from a team as code owners October 8, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B0-silent Changes should not be mentioned in any release notes D2-notlive PR doesn't change runtime code (so can't be audited)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant